package com.yang.core.auth.filter;

import com.yang.security.filter.FilterInterface;
import org.assertj.core.util.Lists;
import org.springframework.stereotype.Component;
import java.util.Collection;


/**
 * Created by baipan
 * Date: 2019-12-18
 * 过滤规则接口实现类
 */
@Component
public class FilterInterfaceServerImpl implements FilterInterface {


    /**
     * 白名单URL列表
     */
    @Override
    public Collection<String> permits() {
        //core 因为是内部应用，部署在内网，不被外网访问，所以此处设置全部放开
        return Lists.newArrayList("/**");
    }


    /**
     * 需要认证URL列表
     */
    @Override
    public Collection<String> authenticates() {
        return Lists.emptyList();
    }

}
